<template>
  <div>
    <p>当前时间：{{ formatTime(now) }}</p>
    <button @click="mockFetch" :disabled="loading">
      {{ loading ? '加载中...' : '点我模拟请求' }}
    </button>
  </div>
</template>

<script>
import commonMixin from '@/mixins/common';

export default {
  name: 'ExampleA',
  mixins: [commonMixin],
  data() {
    return { now: Date.now() };
  },
  methods: {
    mockFetch() {
      this.fetchStart();
      setTimeout(() => { this.now = Date.now(); this.fetchEnd(); }, 1000);
    }
  }
};
</script>